feat: add logging support and improve SSE streaming capabilities#69
Open
fern-api[bot] wants to merge 1 commit intomainfrom
Open
feat: add logging support and improve SSE streaming capabilities#69fern-api[bot] wants to merge 1 commit intomainfrom
fern-api[bot] wants to merge 1 commit intomainfrom
Conversation
This release introduces configurable logging support for HTTP requests and responses, plus enhanced server-sent event (SSE) streaming with event-level discrimination support. Additionally removes deprecated InputStream-based file upload methods from the lab report client. Key changes: - Add optional logging configuration through ClientOptions.Builder.logging() - Add new SSE stream type SSE_EVENT_DISCRIMINATED for discriminated union support - Add fromSseWithEventDiscrimination() factory methods to Stream class - Remove deprecated InputStream-based parserCreateJob() methods from lab report clients - Update lab report documentation to clarify multi-file support 🌿 Generated with Fern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
logging()method onClientOptions.Builder. Enhanced server-sent event streaming with newfromSseWithEventDiscrimination()methods for handling discriminated unions. The deprecatedInputStream-basedparserCreateJob()methods have been removed from lab report clients - use theFile-based methods instead.parserCreateJob()methods that acceptInputStreamparameters have been removed fromRawLabReportClient. Use theFile-based overloads instead. Thelabparameter inLabTestsGetPscAppointmentAvailabilityRequestnow requires anAppointmentPscLabsenum value instead of a raw string.ConvertCompendiumBodyandSearchCompendiumBody. Additionally, a newLabAccountClientis available for managing team lab accounts with thegetTeamLabAccounts()method.additionalProperty()andadditionalProperties()methods are now available on all request builders, allowing you to set custom properties for enhanced flexibility and future extensibility.additionalProperty()andadditionalProperties()are now available on all request builders, allowing flexible configuration of custom properties beyond the predefined fields.additionalProperty()andadditionalProperties()are now available on all vitals request classes, allowing custom properties to be set when constructing requests.additionalProperty()andadditionalProperties()are now available on all vitals request classes, enabling attachment of custom key-value data to API requests.additionalProperty()andadditionalProperties()are now available on request classes to support custom field extensions. TheAppointmentBookingRequestclass now includes an optionalappointmentNotesfield for additional booking context.additionalProperty()andadditionalProperties()are now available on all SDK types, allowing you to handle custom fields that may be present in API responses. A newCanonicalCandidatetype has been added for biomarker canonicalization functionality.appointmentNotesfield is now available onClientFacingAppointmentobjects. Builder classes also now supportadditionalProperty()andadditionalProperties()methods for setting custom properties.additionalProperty()andadditionalProperties()methods available on all model builders. These methods allow setting custom key-value pairs on model objects for enhanced extensibility.additionalProperty()andadditionalProperties()are now available on all model builders to set custom additional properties through fluent interfaces.additionalProperty()andadditionalProperties()are now available on all client-facing type builders. These methods provide a fluent API for setting custom properties on data objects.ClientFacingLabAccounttype. Added support for lab report parsing events throughClientFacingLabReportParsingJobCreatedEventandClientFacingLabReportParsingJobUpdatedEventtypes. Enhanced builder patterns across multiple types now include methods for setting additional properties.additionalProperty()andadditionalProperties()are now available on all ClientFacing* types, enabling programmatic handling of custom properties in response objects.additionalProperty()andadditionalProperties()are now available on all client-facing type builders, enabling custom property assignment during object construction.additionalProperty(String key, Object value)method allows setting individual additional properties, whileadditionalProperties(Map<String, Object> additionalProperties)enables bulk setting of multiple properties during object construction.additionalProperty(String key, Object value)andadditionalProperties(Map<String, Object> additionalProperties)methods. These methods allow developers to add custom key-value pairs to objects during construction while maintaining full backward compatibility.additionalProperty()andadditionalProperties()methods. This enables more flexible handling of custom fields and API extensions.additionalProperty()andadditionalProperties()methods are available on builder classes for all grouped health data types.additionalProperty()andadditionalProperties()allow you to attach custom metadata to grouped timeseries and sample data structures.additionalProperty()andadditionalProperties()methods enable setting dynamic properties when constructing objects. New enum values added for derived readiness data and Sonora Quest lab support.additionalProperty()andadditionalProperties()are now available on data model builders, allowing you to set custom fields when constructing model objects.